export const AMAP_MAP_KEY = '72086c2ab66a3c744e4e4fdd7f8bd4df';
export const AMAP_MAP_SECURITY_KEY = 'b0b4c6e32b0c16207ba865fa64ccee8d';
export const AMAP_MAP_SERVICE_HOST = '';

export const mapConfig = {
  key: AMAP_MAP_KEY,
  version: '2.0',
  plugins: ['AMap.Polyline', 'AMap.ToolBar']
};

export const mapStyles = {
  normal: 'amap://styles/normal', // 标准模式
  dark: 'amap://styles/dark', // 暗夜模式
  light: 'amap://styles/light', // 灰色模式
  grey: 'amap://styles/grey', // 蓝灰色模式
  whitesmoke: 'amap://styles/whitesmoke' // 忽略很多详细地址
};

export const mapOptions = {
  viewMode: '2D',
  zoom: 5,
  center: [104.0668, 30.5721],
  mapStyle: mapStyles.grey
};

export const polylineOptions = {
  strokeWeight: 3, // 线宽
  strokeOpacity: 0.7, // 透明度
  strokeStyle: 'dashed', // 虚线样式
  strokeDasharray: [10, 5], // 设置虚线的大小和间距
  geodesic: true // 是否绘制曲线
};
